<!DOCTYPE html>
<html>
<head>
	<title></title>
</head>
<body>

<script type="text/javascript">

Function.prototype.checkName = function () {
	console.error('验证姓名');
}

var f = function(){};
f.checkName();

var f1 = new Function();
f1.checkName();
	
</script>

</body>
</html>